package com.lukebang.TEST;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.parser.Feature;
import com.lukebang.dao.RepairIndentDAO;
import com.lukebang.pojo.RepairIndent;

import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath*:/applicationContext.xml" })
@Transactional
public class TestJiGuangJupsh {
	@Resource
	RepairIndentDAO repairIndentDAO;

	@Test
	public void testJiGuangJupsh() {
		RepairIndent repairIndent = JSON.parseObject(
				"{'acceptTime':null,'addPrice':5.0,'afterSale':null,'baseAddress':null,'beginTime':null,'bigouNum':5,'couponsId':null,'cuAdId':null,'customerAddress':null,'customerId':null,'customerInfo':null,'customerPrice':null,'dealerId':null,'deposit':null,'detailAddress':null,'finishTime':null,'indentAddress':null,'indentId':10,'indentPrice':370.0,'indentSource':null,'indentType':null,'isDelete':null,'isEva':null,'isNeedTakeGoods':null,'merchantName':null,'merchantPhone':null,'merchantsPrice':375.0,'motorNum':5,'quHAddress':null,'relievedBao':1,'remark':null,'sizhuagouNum':5,'status':0,'subscribeTime':null,'takeGoodsTel':null,'type':null,'weiXbody':null,'workerId':null}",
				RepairIndent.class, Feature.AllowSingleQuotes);
		
		int modifyByPrimaryKey = repairIndentDAO.modifyByPrimaryKey(repairIndent);
	}

}
